package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
public class Cart extends Model<Cart> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 商铺id
     */
    @TableField("store_id")
    private String storeId;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 商品库存id
     */
    @TableField("product_info_id")
    private String productInfoId;
    /**
     * 商品数量
     */
    private Integer num;
    /**
     * 删除状态
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 默认被选中的状态 0选中 1非选中
     */
    private Integer state;
    /**
     * 是否为定制商品   0非定制   1定制
     */
    @TableField("custom_state")
    private Integer customState;
    /**
     * 定制id
     */
    @TableField("trace_id")
    private String traceId;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getProductInfoId() {
        return productInfoId;
    }

    public void setProductInfoId(String productInfoId) {
        this.productInfoId = productInfoId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getCustomState() {
        return customState;
    }

    public void setCustomState(Integer customState) {
        this.customState = customState;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Cart{" +
        "id=" + id +
        ", storeId=" + storeId +
        ", userId=" + userId +
        ", productInfoId=" + productInfoId +
        ", num=" + num +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", state=" + state +
        ", customState=" + customState +
        ", traceId=" + traceId +
        "}";
    }
}
